<?php get_header(); ?>
<?php
$query = new WP_Query('cat='.get_query_var('cat').'&posts_per_page=1');
$post_id = $query->post->ID;
$args = array(
    'orderby' => 'date'
);
$arms = array_merge($args, $wp_query->query);
query_posts($arms) ?>
<a href="<?php echo get_permalink($post_id) ?>">
    <div class="imgcard">
        <span class="hover-left">分类：<?php echo get_cat_name(get_query_var('cat')) ?></span>
        <img src="<?php echo getThumbByH(catch_imgByID($post_id), 500); ?>" style="max-height: 500px;width:100%">
        <div class="hover-aw">
            <?php echo get_post($post_id)->post_title; ?>
        </div>
    </div>
</a>
<?php get_template_part( 'advance/postlist', 'loop' );?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>